!function o(i,a,l){function u(e,t){if(!a[e]){if(!i[e]){var s="function"==typeof require&&require;if(!t&&s)return s(e,!0);if(c)return c(e,!0);var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}var n=a[e]={exports:{}};i[e][0].call(n.exports,function(t){return u(i[e][1][t]||t)},n,n.exports,o,i,a,l)}return a[e].exports}for(var c="function"==typeof require&&require,t=0;t source",data_src:t.data_src||"src",data_bg:t.data_bg||"bg",default_params:t.default_params||null,hosts:t.hosts||null,threshold:t.threshold||100}}},{}],5:[function(t,e,s){"use strict";var r="undefined"!=typeof window;e.exports={runningOnBrowser:r,webp_support:!1,isBot:r&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),supportsIntersectionObserver:r&&"IntersectionObserver"in window&&IntersectionObserverEntry.prototype.hasOwnProperty("isIntersecting"),supportsMutationObserver:r&&"MutationObserver"in window}},{}],6:[function(t,e,s){"use strict";var a=t("./url_parser"),l=t("./utils"),u=t("./environment"),r=t("./config"),n=t("./lazyload"),c={currentHosts:[],gumletHosts:[],gumletioHosts:[],settings:null,initDone:!1,init:function(t){if(!c.initDone){if(c.initDone=!0,!t.hosts)throw new Error('You must provide "hosts" config while initializing Gumlet.');c.settings=r(t),l.hasWebP(function(t){u.webp_support=t}),c.settings.lazy_load&&u.supportsIntersectionObserver&&(c._lazyload_observer_pic=n(c.load_pic,c.settings.threshold),c._lazyload_observer_img=n(c.load_img,c.settings.threshold),c._lazyload_observer_bg=n(c.load_bg,c.settings.threshold)),u.supportsMutationObserver&&(c._mutation_observer=new window.MutationObserver(c.mutatedCallback)),c.settings.hosts.forEach(function(t){var e,s;t.current&&(t.current.startsWith("http")&&(e=new a(t.current),t.current=e.hostname),c.currentHosts.push(t.current)),t.gumlet.startsWith("http")&&(s=new a(t.gumlet),t.gumlet=s.hostname),t.gumlet.endsWith("gumlet.com")?c.gumletioHosts.push(t.gumlet.replace("gumlet.com","gumlet.io")):c.gumletioHosts.push(null),c.gumletHosts.push(t.gumlet)}),l.domReady(function(){c.init_dom_observer(),c.load_all()})}},init_dom_observer:function(){!c._entireDomObserver&&u.supportsMutationObserver&&(c._entireDomObserver=new MutationObserver(c.dom_mutation_cb).observe(document,{childList:!0,subtree:!0}))},dom_mutation_cb:function(t){t.forEach(function(t){"HEAD"!=t.target.tagName&&t.addedNodes.forEach(function(t){"SOURCE"!=t.tagName&&"IMG"!=t.tagName||"function"!=typeof t.matches?"function"==typeof t.querySelectorAll&&(t.querySelectorAll(c.settings.elements_selector_img).forEach(c.load_if_needed),t.querySelectorAll(c.settings.elements_selector_picture).forEach(c.load_if_needed),t.querySelectorAll(c.settings.elements_selector_bg).forEach(c.load_if_needed)):c.load_if_needed(t)})})},load_if_needed:function(t){t.classList.contains(c.settings.class_loaded)||(t.classList.add(c.settings.class_added),c.load(t))},load_all:function(){var t=document.querySelectorAll(c.settings.elements_selector_img+", "+c.settings.elements_selector_picture+", "+c.settings.elements_selector_bg);t.forEach(function(t){c.load(t)})},initMutationObserver:function(t){!t.classList.contains(c.settings.class_observing)&&c._mutation_observer&&(t.classList.add(c.settings.class_observing),t.classList.add(c.settings.class_observing_cb),c._mutation_observer.observe(t,{attributes:!0,attributeFilter:["src","data-"+c.settings.data_src]}))},mutatedCallback:function(t){for(var e=0,s=t.length;ewindow.innerWidth)&&(s=window.innerWidth)}for(var o=0;o